﻿using System.Runtime.Serialization;

namespace DTO
{
    [DataContract]
    [KnownType(typeof(Student))]
    public class Student : DTOBase
    {
        private int idstud;
        private Zachet Zach;
        private Person Person;
        private Semestr sem;
        private Group grups;

        [DataMember]
        public int Idstud
        {
            get { return idstud; }
            set { idstud = value; }
        }

        [DataMember]
        public Person person
        {
            get { return Person; }
            set { Person = value; }
        }

        [DataMember]
        public Semestr Sem
        {
            get { return sem; }
            set { sem = value; }
        }

        [DataMember]
        public Zachet zach
        {
            get { return Zach; }
            set { Zach = value; }
        }

        [DataMember]
        public Group Grups
        {
            get { return grups; }
            set { grups = value; }
        }
    }
}